package com.zrj.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zrj.common.utils.PageUtils;
import com.zrj.gulimall.product.entity.AttrEntity;
import com.zrj.gulimall.product.entity.ProductAttrValueEntity;
import com.zrj.gulimall.product.vo.AttrGroupRelationVo;
import com.zrj.gulimall.product.vo.AttrRespVo;
import com.zrj.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author zhaorujie
 * @email 781392805@qq.com
 * @date 2021-01-19 15:29:33
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void saveAtrr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

    AttrRespVo getAttrInfo(Long attrId);

    void updateArrt(AttrVo attr);

    PageUtils queryAttrNoattrRelation(Map<String, Object> params, Long attrgroupId);

    void deleteRelation(List<AttrGroupRelationVo> vos);

    List<Long> selectSearchAttrs(List<Long> attrIds);
}

